// Shared types from the original web application
export interface User {
  id: string;
  username: string;
  email: string | null;
  password: string | null;
  firstName: string | null;
  lastName: string | null;
  profileImageUrl: string | null;
  phone: string | null;
  role: "user" | "instructor" | "business";
  companyName: string | null;
  qualifications: string[] | null;
  createdAt: Date;
}

export interface Course {
  id: string;
  title: string;
  description: string | null;
  content: string | null;
  price: number;
  type: "live" | "recorded";
  status: "draft" | "published" | "archived";
  instructorId: string | null;
  coverImageUrl: string | null;
  startDate: Date | null;
  endDate: Date | null;
  duration: number | null;
  createdAt: Date;
}

export interface ChatMessage {
  id: string;
  content: string;
  userId: string | null;
  isAiResponse: boolean;
  createdAt: Date;
}

export interface ExerciseRecord {
  id: string;
  exerciseType: string;
  duration: number | null;
  date: Date;
  userId: string | null;
  createdAt: Date;
}

export interface UserProfile {
  id: string;
  userId: string | null;
  birthDate: Date | null;
  height: number | null;
  weight: string | null;
  bodyFatPercentage: number | null;
  updatedAt: Date;
}

// 导出API相关类型
export * from './api';